package anji.plus.system.mark.mapper;

import anji.plus.system.mark.domain.Flag;
import anji.plus.system.mark.dto.userFlagInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统用户表Mapper接口
 * </p>
 *
 * @author luwei
 * @since 2023-11-08
 */
public interface FlagMapper extends BaseMapper<Flag> {


    List<userFlagInfo> queryFlagList(String name);

    void addFlag(Flag flag);

    void updateFlag(@Param("f1") Flag f1);

    void deleteFlag(@Param("id")String id);

    String queryUserFlagNum(@Param("name")String name);

    String queryUserIsChange(@Param("name")String name);

    Double queryUserFlagAverage(@Param("name")String name);
}
